public var splashScreen: Transform;
private var endTimer: float = 4.0;
private var decriseAlpha: float = 0.5;
private var ifDecrise: boolean = true;
private var levelToLoad: int = 1;
public var cursor:Texture2D;
public var cursorPos: Vector3;
function Start() {
	Screen.showCursor = false;
}
function Update () {
	if(ifDecrise){
		splashScreen.renderer.material.color.a += Time.deltaTime * decriseAlpha;
		endTimer -= Time.deltaTime;
		if(splashScreen.renderer.material.color.a >= 1.0){
			ifDecrise = false;
			decriseAlpha = -decriseAlpha;
		}
		if(endTimer<0){
			Application.LoadLevel(levelToLoad);
		}
	}else{
		ifDecrise = Application.CanStreamedLevelBeLoaded (levelToLoad);
	}
}
function OnGUI() {
	cursorPos = Input.mousePosition;
	cursorPos.x -= 12;
	cursorPos.y = Screen.height - cursorPos.y-12;
	GUI.DrawTexture(Rect(cursorPos.x,cursorPos.y,24,24),cursor);
}